<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <main id="app">
        <p>{{name}}说：“{{word}}”</p>
        <p>{{say()}}</p>
        <p v-text="name + '说：“' + word + '”'"></p>
        <p v-text="say()"></p>
    </main>
</body>
<script src="../../vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            name: "奉先",
            word: "你好",
        },
        methods: {
            say() {
                return `${this.name}说：“${this.word}”`;
            }
        }

    })
</script>
</html>